<?php
/**
 * Created by PhpStorm.
 * User: sosyuki
 * Date: 2018/5/30
 * Time: 14:31
 */

namespace Drupal\distribution\ViewsController\handler\filter;


use views_handler_filter_in_operator;

class DistributionApplyFilterShowStatus extends views_handler_filter_in_operator {

  function get_value_options() {
    if (!isset($this->value_options)) {
      $this->value_title = t('Status');
      $this->value_options = [
        0 => '审核中',
        1 => '已通过',
        2 => '未通过',
      ];
    }
  }

  public function value_form(&$form, &$form_state) {
    parent::value_form($form, $form_state);
    $form['value']['#chosen'] = TRUE;
  }
}
